#ifndef RP2TRIANGLE3_H
#define RP2TRIANGLE3_H

#include "Rp2Vector3.h"

namespace Rp2
{
class Triangle3
{
public:
    // The triangle is represented as an array of three vertices, V0, V1,
    // and V2.

	Triangle3(); // uninitialized
	Triangle3(const Vector3f& rkV0, const Vector3f& rkV1, const Vector3f& rkV2);
	Triangle3(const Vector3f akV[3]);

	// distance from the point Q to the triangle
	float DistanceTo(const Vector3f& rkQ) const;

	Vector3f V[3];
};

#include "Rp2Triangle3.inl"

}

#endif